package cn.ycc1.lianzi.service;

import com.alibaba.dashscope.aigc.generation.Generation;
import com.alibaba.dashscope.aigc.generation.GenerationResult;
import com.alibaba.dashscope.common.Message;
import com.alibaba.dashscope.exception.InputRequiredException;
import com.alibaba.dashscope.exception.NoApiKeyException;
import io.reactivex.Flowable;

/**
 * @author ycc
 * @date 2025/2/12
 */
public interface ChatService {
    Flowable<GenerationResult> streamCallWithMessage(Generation gen, Message userMsg) throws NoApiKeyException, InputRequiredException;
}
